//@PCSTART@//
package com.bluetane.pc;
//@PCEND@//
/*//@ANDROIDSTART@//
package com.bluetane.android;
//@ANDROIDEND@//*/

public class SendableInteger extends SendableObject
{
	
	public SendableInteger(Integer startInteger)
	{
		super("Integer", IntUtils.intToBytes(startInteger));
		sendObject = startInteger;
		
	}
	
	Integer getInteger()
	{
		if (sendObject == null)
			sendObject = IntUtils.bytesToInt(objectBytes);
		return (Integer) sendObject;
	}
	
	byte[] getBytes()
	{
		if (objectBytes == null)
			objectBytes = IntUtils.intToBytes((Integer) sendObject);
		return objectBytes;
	}

}
